package com.credit.shtl.dao.admin;/**
 * @Classname AdminUserDAO
 * @Description TODO
 * @Date 2020/11/3 12:22
 * @Created by SHTL
 */

import com.credit.shtl.dao.admin.AdminUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @InterfaceName AdminUserDAO
 * @Description 管理员DAO接口
 * @Author SHTL
 * @Date 2020/11/3 12:22
 * @Version 1.0
 */
public interface AdminUserDAO extends JpaRepository<AdminUser, String>, JpaSpecificationExecutor<AdminUser> {

    AdminUser findByZhanghao(Integer zhanghao);

    // 根据账户、邮箱、密保进行查找用户
    AdminUser findByZhanghaoAndEmailAndMibao(Integer zhanghao, String email, String mibao);

    AdminUser getByZhanghaoAndPassword(Integer zhanghao, String password);


    AdminUser findByZhanghaoAndEmail(Integer zhanghao, String email);

}
